-- GENERATED SPELL FOR [Spawn of Uvuros] --


function spell0_21108(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(27050,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21108', 576, 1)
end

function spell1_21108(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(27048,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21108', 0, 1)
end

function spell2_21108(pUnit, Event) --@Dash,Self--
pUnit:FullCastSpellOnTarget(61684,pUnit)
pUnit:RegisterEvent('Sorts_21108', 16000, 1)
end

function spell3_21108(pUnit, Event) --@Double Breath,n/a--
pUnit:FullCastSpellOnTarget(36406,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21108', 4500, 1)
end

function spell4_21108(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14921,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21108', 0, 1)
end

function spell5_21108(pUnit, Event) --@Lava Breath,n/a--
pUnit:FullCastSpellOnTarget(58610,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21108', 10000, 1)
end

function spell6_21108(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(36405,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21108', 528, 1)
end

function Sorts_21108(pUnit, Event)
local choix_sorts_21108 = math.random(0, 6)
if choix_sorts_21108 == 0 then
pUnit:RegisterEvent('spell0_21108', 1, 1)
end
if choix_sorts_21108 == 1 then
pUnit:RegisterEvent('spell1_21108', 1, 1)
end
if choix_sorts_21108 == 2 then
pUnit:RegisterEvent('spell2_21108', 1, 1)
end
if choix_sorts_21108 == 3 then
pUnit:RegisterEvent('spell3_21108', 1, 1)
end
if choix_sorts_21108 == 4 then
pUnit:RegisterEvent('spell4_21108', 1, 1)
end
if choix_sorts_21108 == 5 then
pUnit:RegisterEvent('spell5_21108', 1, 1)
end
if choix_sorts_21108 == 6 then
pUnit:RegisterEvent('spell6_21108', 1, 1)
end
end

function mob21108_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21108', math.random(1500, 3000), 1)
end

function mob21108_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21108_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21108_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21108, 1, 'mob21108_Action')
RegisterUnitEvent(21108, 2, 'mob21108_Leave')
RegisterUnitEvent(21108, 3, 'mob21108_Kill')
RegisterUnitEvent(21108, 4, 'mob21108_Die')
